#include "stack.h"

void test()
{
	stack s;
	stackInit(&s);
	stackPush(&s, 1);
	stackPush(&s, 2);
	
	printf("%d  ", stackTop(&s));
	stackPop(&s);

	stackPush(&s, 3);
	stackPush(&s, 4);

	while (!stackEmpty(&s))
	{
		printf("%d  ", stackTop(&s));
		stackPop(&s);
	}

	stackDestory(&s);
}


int main(void)
{
	test();

	return 0;
}
